#include <platform/pwm.h>
bit BIT_TMP;
void pwm_init(void)
{

	set_bit(PIOCON0, 0);
	set_bit(PWMCON1, 6);
	clr_bit(PWMCON1, 7);
	PWMCON1|=0x03;PWMCON1&=0xFB;
	PWMPH = 0x07;
			PWMPL = 0xCF;
	
			PWM0H = 0x03;
			PWM0L = 0xCF;
	BIT_TMP=EA;EA=0;TA=0xAA;TA=0x55;PDTEN|=0x01;EA=BIT_TMP;
PWMRUN   = 1;
LOAD     = 1;

}

